Recibo este error que muestra listarr.forEach is not a function .
let newLiTag=''; listArr.forEach((element, index) =>{ newLiTag+= `<li> ${element} <span class="check" onclick="check(${index})"> <i class="fas fa-check"></i></span> <span onclick = "modify(${index})"><i class="fas fa-edit"></i></span> <span onclick = "deleteTask(${index})"><i class="fas fa-trash"></i></span> </li>`; });Compruebe si ha declarado la variable listArr. Ejemplo:
let newLiTag=''; const listArr = []; // Add variable listArr here listArr.forEach((element, index) =>{ // Do things here });